*** MAIN ANALYSES

**use "/Users/user/Downloads/POLCOMM City Council Data Processed Final.dta"

*****************************************************************************************************
**Table 2 Results (Mixed Effects Linear Model with Crossed Random Effects)
*****************************************************************************************************

**Proportion Distracted as Dependent Variable 
** full output in Appendix I
mixed total_perc2 i.black_white_const##i.black_white_rep i.gender_rep i.gender_const i.freq_const i.domin_topic i.same_opinion i.content_race i.content_class order2 i.ward_rep i.city i.cat_sptotal1 i.conf_meeting || _all: R.rep || const1:

*Table 2, Model 1, Row 1-4
margins black_white_rep##black_white_const
*Table 2, Model 1, Row 5-6
margins r.black_white_const@black_white_rep
*Table 2, Model 1, Row 7-8
margins r.black_white_rep@black_white_const

**Distraction during 0-30 seconds of constituent's speech
** full output in Appendix I
mixed new30sec i.black_white_const##i.black_white_rep i.gender_rep i.gender_const i.freq_const i.domin_topic i.same_opinion i.content_race i.content_class order2 i.ward_rep i.city i.cat_sptotal1 i.conf_meeting || _all: R.rep || const1:

*Table 2, Model 2, Row 1-4
margins black_white_rep##black_white_const
*Table 2, Model 2, Row 5-6
margins r.black_white_const@black_white_rep
*Table 2, Model 2, Row 7-8
margins r.black_white_rep@black_white_const

**Distraction during the interval from 0-60 seconds of constituent's speech
** full output in Appendix I
mixed new1minute i.black_white_const##i.black_white_rep i.gender_rep i.gender_const i.freq_const i.domin_topic i.same_opinion i.content_race i.content_class order2 i.ward_rep i.city i.cat_sptotal1 i.conf_meeting || _all: R.rep || const1:

*Table 2, Model 3, Row 1-4
margins black_white_rep##black_white_const
*Table 2, Model 3, Row 5-6
margins r.black_white_const@black_white_rep
*Table 2, Model 3, Row 7-8
margins r.black_white_rep@black_white_const

**Distraction during the interval of 61 to 120 seconds of constituent's speech
** full output in Appendix I
mixed new2minutes i.black_white_const##i.black_white_rep i.gender_rep i.gender_const i.freq_const i.domin_topic i.same_opinion i.content_race i.content_class order2 i.ward_rep i.city i.cat_sptotal1 || _all: R.rep || const1:

*Table 2, Model 4, Row 1-4
margins black_white_rep##black_white_const
*Table 2, Model 4, Row 5-6
margins r.black_white_const@black_white_rep
*Table 2, Model 4, Row 7-8
margins r.black_white_rep@black_white_const

**Distraction during the interval of 121 seconds and beyond of constituent's speech
** full output in Appendix I
mixed new3minutes i.black_white_const##i.black_white_rep i.gender_rep i.gender_const i.freq_const i.domin_topic i.same_opinion i.content_race i.content_class order2 i.ward_rep i.city i.cat_sptotal1 || _all: R.rep || const1:

*Table 2, Model 5, Row 1-4
margins black_white_rep##black_white_const
*Table 2, Model 5, Row 5-6
margins r.black_white_const@black_white_rep
*Table 2, Model 5, Row 7-8
margins r.black_white_rep@black_white_const

